<?php

use think\migration\Migrator;
use think\migration\db\Column;

class AlterAgentAddRelationYmsh extends Migrator
{
    public function up()
    {
        $this->table('agent')
            ->addColumn('is_relation', 'boolean', ['limit' => 1, 'default' => 0, 'comment' => '关联有美(1:关联,0:不关联)'])
            ->update();
    }

    public function down()
    {
        $this->table('agent')->removeColumn('is_relation');
    }
}
